package com.gc.jbnfgen.gen;

/**
 *
 * @author dmitry.mamonov
 */
public class Constant extends JBNF {
    public static final Constant NOTHING = new Constant("nothing", "");
    String litral;
    public Constant(String name, String literal) {
        super(name);
        this.litral = literal;
    }

    public Constant(String name) {
        this(name,name);
    }


    public String getLitral() {
        return litral;
    }
}
